//
//  FenxiaoyongjinVC.m
//  1243
//
//  Created by apple on 16/7/20.
//  Copyright © 2016年 1243. All rights reserved.
//

#import "FenxiaoyongjinVC.h"

@interface FenxiaoyongjinVC ()

@end

@implementation FenxiaoyongjinVC
{
    UILabel         *mTixian;
    UILabel         *mSucceed;
    UILabel         *mLeijiLB;
    UILabel         *mYishenqing;
    UILabel         *mDaidakuan;
    UIButton        *tixianBut;
}
- (void)viewDidLoad {
    [super viewDidLoad];
    self.view.backgroundColor = [UIColor whiteColor];
    self.navigationController.navigationBar.translucent = NO;
    self.title = @"分销佣金";
    
    [self createUI];
}

- (void)createUI {
    
    UILabel *tixianLB = [[UILabel alloc]initWithFrame:CGRectMake(35, 15, 100, 20)];
    tixianLB.text = @"可提现佣金";
    tixianLB.font = [UIFont systemFontOfSize:18];
    [self.view addSubview:tixianLB];
    
    mTixian = [[UILabel alloc]initWithFrame:CGRectMake(35, 60, 100, 20)];
    mTixian.text = @"0.00";
    [mTixian setFont:[UIFont fontWithName:@"Helvetica-Bold" size:27]];
    [self.view addSubview:mTixian];
    
    UILabel *chakanLB = [[UILabel alloc]initWithFrame:CGRectMake(WIDTH - 120, 60, 85, 30)];
    chakanLB.text = @"查看明细";
    chakanLB.font = [UIFont systemFontOfSize:18];
    [self.view addSubview:chakanLB];
    
    [self lineView:CGRectMake(0, 110, WIDTH, 0.5)];
    
    UILabel *succeedTixian = [[UILabel alloc] initWithFrame:CGRectMake(35, 120, 120, 30)];
    succeedTixian.text = @"成功提现佣金";
    succeedTixian.font = [UIFont systemFontOfSize:18];
    [self.view addSubview:succeedTixian];
    
    mSucceed = [[UILabel alloc] initWithFrame:CGRectMake(200, 120, 100, 30)];
    mSucceed.text = @"0.00";
    mSucceed.font = [UIFont systemFontOfSize:18];
    [self.view addSubview:mSucceed];
    
    [self lineView:CGRectMake(0, 160, WIDTH, 0.5)];
    
    UILabel *leijiLB = [[UILabel alloc] initWithFrame:CGRectMake(35, 185, 120, 20)];
    leijiLB.text = @"累计佣金";
    [leijiLB setFont:[UIFont fontWithName:@"Helvetica-Bold" size:21]];
    [self.view addSubview:leijiLB];
    
    UILabel *yishenqing = [[UILabel alloc] initWithFrame:CGRectMake(WIDTH - 120, 185, 100, 20)];
    yishenqing.text = @"已申请佣金";
    yishenqing.textAlignment = NSTextAlignmentRight;
    yishenqing .font = [UIFont systemFontOfSize:18];
    [self.view addSubview:yishenqing];
    
    mLeijiLB = [[UILabel alloc] initWithFrame:CGRectMake(35, 230, 120, 20)];
    mLeijiLB.text = @"0.00";
    [mLeijiLB setFont:[UIFont fontWithName:@"Helvetica-Bold" size:27]];
    [self.view addSubview:mLeijiLB];
    
    mYishenqing = [[UILabel alloc] initWithFrame:CGRectMake(WIDTH - 120, 230, 100, 20)];
    mYishenqing.text = @"0.00";
    mYishenqing.textAlignment = NSTextAlignmentRight;
    mYishenqing.font = [UIFont systemFontOfSize:18];
    [self.view addSubview:mYishenqing];
    
    [self lineView:CGRectMake(0, 270, WIDTH, 0.5)];
    
    UILabel *daidakuan = [[UILabel alloc] initWithFrame:CGRectMake(35, 290, 100, 20)];
    daidakuan.text = @"待打款佣金";
    daidakuan .font = [UIFont systemFontOfSize:18];
    [self.view addSubview:daidakuan];
    
    UILabel *daidakuanGary = [[UILabel alloc] initWithFrame:CGRectMake(35, 315, WIDTH- 35, 20)];
    daidakuanGary.text = @"买家确认收货后,立即获得分销佣金";
    daidakuanGary.textColor = [UIColor grayColor];
    daidakuanGary .font = [UIFont systemFontOfSize:15];
    [self.view addSubview:daidakuanGary];
    
    mDaidakuan = [[UILabel alloc] initWithFrame:CGRectMake(200, 290, 100, 20)];
    mDaidakuan.text = @"0.00";
    mDaidakuan.font = [UIFont systemFontOfSize:18];
    [self.view addSubview:mDaidakuan];
    
    
    
    [self lineView:CGRectMake(0, 345, WIDTH, 0.5)];
    
    UILabel *zhu = [[UILabel alloc] initWithFrame:CGRectMake(35, HEIGHT - 140, WIDTH- 35, 20)];
    zhu.text = @"注:可提现佣金满1元才可提现";
    zhu.textColor = [UIColor grayColor];
    zhu .font = [UIFont systemFontOfSize:15];
    [self.view addSubview:zhu];
    
    tixianBut = [UIButton buttonWithType:UIButtonTypeCustom];
    tixianBut.frame = CGRectMake(0, HEIGHT - 108, WIDTH, 44);
    [tixianBut setBackgroundColor:[UIColor colorWithRed:45/255.0   green:87/255.0 blue:228/255.0 alpha:1]];
    [tixianBut setTitle:@"提现" forState:UIControlStateNormal];
    [self.view addSubview:tixianBut];
}


- (void)lineView:(CGRect)CGRECT {
    UIView *lineView = [[UIView alloc]initWithFrame:CGRECT];
    lineView.backgroundColor = [UIColor colorWithRed:184/255.0 green:184/255.0 blue:184/255.0 alpha:1];
    
    [self.view addSubview:lineView];
}






- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
